package com.jlcindia.spring;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Lab20 {
	public static void main(String[] args) {
		AbstractApplicationContext ctx=new ClassPathXmlApplicationContext("jlcindia.xml");
		System.out.println("Spring container is ready...");
		System.out.println("----------------------------");
		Hello hello=(Hello)ctx.getBean("hello");
		hello.show();
		System.out.println("----------------------------");
		System.out.println("Spring Container is going to shut down...");
		ctx.registerShutdownHook();
	}
}
